package chenji.itemeditor.itemeditor;

public enum FireworkType {

	LITTLEBALL(0), BIGBALL(1), STAR(2), HEAD(3), EXPLOSION(4);
	private int id;

	private FireworkType(int id) {
		this.id = id;
	}

	public int getID() {
		return id;
	}

	public static FireworkType getByID(int id) {
		switch (id) {
		case 0:
			return FireworkType.LITTLEBALL;
		case 1:
			return FireworkType.BIGBALL;
		case 2:
			return FireworkType.STAR;
		case 3:
			return FireworkType.HEAD;
		case 4:
			return FireworkType.EXPLOSION;
		}
		return null;
	}
}
